import http from '@/utils/request'

//运动类别信息
export async function getCategoryApi(){
  return await http.get("/category")
}

//获取单个运动类别信息
export async function getCategoryByIdApi(parm){
  return await http.get("/category",parm)
}

//添加运动类别
export async function addCategoryApi(parm){
  return await http.post("/category",parm)
}

//修改运动类别
export async function editCategoryApi(parm){
  return await http.put("/category",parm)
}

//运动类别排序
export async function sortCategoryApi(parm){
  return await http.put("/category/sort",parm)
}

//删除运动类别
export async function deleteCategoryApi(parm){
  return await http.delete("/category",parm)
}
